import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useTabbarStore = defineStore('tabbar', () => {
  const tabbarIndex = ref(0)
  const setTabbarIndex = (val: number) => {
    console.log('🚀 ~ file: tabbar.ts:7 ~ setTabbarIndex ~ val:', val)
    tabbarIndex.value = val
  }
  return {
    tabbarIndex,
    setTabbarIndex,
  }
})
